<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Hugo添加Algolia搜索支持 - Lglspace‘s Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="lglspace" /><meta name="description" content="注册Algolia账号,创建应用及索引 网站： https://www.algolia.com Hugo生成索引文件 修改配制config.toml 修改 config.toml 文件声明需要生成Algolia索引文件" /><meta name="keywords" content="lglspace, blog, lgl" />






<meta name="generator" content="Hugo 0.79.0 with theme even" />


<link rel="canonical" href="https://lglspace.cn/post/site/hugo-algolia/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<link rel="stylesheet" href="/css/even-custom.css">


<meta property="og:title" content="Hugo添加Algolia搜索支持" />
<meta property="og:description" content="注册Algolia账号,创建应用及索引 网站： https://www.algolia.com Hugo生成索引文件 修改配制config.toml 修改 config.toml 文件声明需要生成Algolia索引文件" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://lglspace.cn/post/site/hugo-algolia/" />
<meta property="article:published_time" content="2020-10-21T22:09:58+08:00" />
<meta property="article:modified_time" content="2020-10-21T22:09:58+08:00" />
<meta itemprop="name" content="Hugo添加Algolia搜索支持">
<meta itemprop="description" content="注册Algolia账号,创建应用及索引 网站： https://www.algolia.com Hugo生成索引文件 修改配制config.toml 修改 config.toml 文件声明需要生成Algolia索引文件">
<meta itemprop="datePublished" content="2020-10-21T22:09:58+08:00" />
<meta itemprop="dateModified" content="2020-10-21T22:09:58+08:00" />
<meta itemprop="wordCount" content="813">



<meta itemprop="keywords" content="Hugo,site," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Hugo添加Algolia搜索支持"/>
<meta name="twitter:description" content="注册Algolia账号,创建应用及索引 网站： https://www.algolia.com Hugo生成索引文件 修改配制config.toml 修改 config.toml 文件声明需要生成Algolia索引文件"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Lglspace</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Lglspace</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">Hugo添加Algolia搜索支持</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-10-21 </span>
        <div class="post-category">
            <a href="/categories/hugo/"> Hugo </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#注册algolia账号创建应用及索引">注册Algolia账号,创建应用及索引</a></li>
        <li><a href="#hugo生成索引文件">Hugo生成索引文件</a>
          <ul>
            <li><a href="#修改配制configtoml">修改配制<code>config.toml</code></a></li>
            <li><a href="#添加索引文件模板listalgoliajson">添加索引文件模板<code>list.algolia.json</code></a></li>
            <li><a href="#执行-hugo-命令生成索引文件">执行 <code>hugo</code> 命令，生成索引文件</a></li>
          </ul>
        </li>
        <li><a href="#自动上传索引文件">自动上传索引文件</a>
          <ul>
            <li><a href="#安装-atomic-algolia-包">安装 atomic-algolia 包</a></li>
            <li><a href="#添加脚本指令">添加脚本指令</a></li>
            <li><a href="#设置环境变量">设置环境变量</a></li>
            <li><a href="#指令测试">指令测试</a></li>
          </ul>
        </li>
        <li><a href="#添加前端ui">添加前端UI</a>
          <ul>
            <li><a href="#引入css文件">引入CSS文件</a></li>
            <li><a href="#引入js文件并初始化">引入JS文件并初始化</a></li>
            <li><a href="#添加搜索框入口">添加搜索框入口</a></li>
          </ul>
        </li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h2 id="注册algolia账号创建应用及索引">注册Algolia账号,创建应用及索引</h2>
<p>网站： <a href="https://www.algolia.com">https://www.algolia.com</a></p>
<h2 id="hugo生成索引文件">Hugo生成索引文件</h2>
<h3 id="修改配制configtoml">修改配制<code>config.toml</code></h3>
<p>修改 <code>config.toml</code> 文件声明需要生成Algolia索引文件以及相关信息</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-toml" data-lang="toml"><span class="p">[</span><span class="nx">outputs</span><span class="p">]</span>
    <span class="nx">home</span> <span class="p">=</span> <span class="p">[</span><span class="s2">&#34;HTML&#34;</span><span class="p">,</span> <span class="s2">&#34;RSS&#34;</span><span class="p">,</span> <span class="s2">&#34;Algolia&#34;</span><span class="p">]</span>
  
<span class="p">...</span><span class="nx">中间省略</span>

<span class="p">[</span><span class="nx">outputFormats</span><span class="p">.</span><span class="nx">Algolia</span><span class="p">]</span>
  <span class="nx">baseName</span> <span class="p">=</span> <span class="s2">&#34;algolia&#34;</span>
  <span class="nx">isPlainText</span> <span class="p">=</span> <span class="kc">true</span>
  <span class="nx">mediaType</span> <span class="p">=</span> <span class="s2">&#34;application/json&#34;</span>
  <span class="nx">notAlternative</span> <span class="p">=</span> <span class="kc">true</span>
  
<span class="p">[</span><span class="nx">params</span><span class="p">.</span><span class="nx">algolia</span><span class="p">]</span>
  <span class="nx">appId</span> <span class="p">=</span> <span class="s2">&#34;你的Application ID&#34;</span>
  <span class="nx">indexName</span> <span class="p">=</span> <span class="s2">&#34;你的索引名字&#34;</span>
  <span class="nx">searchOnlyKey</span> <span class="p">=</span> <span class="s2">&#34;你的Search-Only API Key&#34;</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="添加索引文件模板listalgoliajson">添加索引文件模板<code>list.algolia.json</code></h3>
<p>根目录下 <code>layouts/_default</code> (没有就新建) 文件夹中新建 <code>list.algolia.json</code> 文件，内容如下：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-toml" data-lang="toml"><span class="p">{{</span><span class="err">/*</span> <span class="nx">生成Algolia搜索索引文件</span> <span class="err">*/</span><span class="p">}}</span>
<span class="p">{{</span><span class="err">-</span> <span class="err">$</span><span class="p">.</span><span class="nx">Scratch</span><span class="p">.</span><span class="nx">Add</span> <span class="s2">&#34;index&#34;</span> <span class="nx">slice</span> <span class="err">-</span><span class="p">}}</span>
<span class="p">{{</span><span class="err">/*</span> <span class="nx">content</span><span class="err">/</span><span class="nx">posts或content</span><span class="err">/</span><span class="nx">post目录下的博文才生成索引</span> <span class="err">*/</span><span class="p">}}</span>
<span class="p">{{</span><span class="err">-</span> <span class="nx">range</span> <span class="nx">where</span> <span class="err">(</span><span class="nx">where</span> <span class="p">.</span><span class="nx">Site</span><span class="p">.</span><span class="nx">Pages</span> <span class="s2">&#34;Type&#34;</span> <span class="s2">&#34;in&#34;</span> <span class="err">(</span><span class="nx">slice</span> <span class="s2">&#34;posts&#34;</span> <span class="s2">&#34;post&#34;</span><span class="err">))</span> <span class="s2">&#34;IsPage&#34;</span> <span class="kc">true</span> <span class="err">-</span><span class="p">}}</span>
  <span class="p">{{</span><span class="err">-</span> <span class="nx">if</span> <span class="nx">and</span> <span class="err">(</span><span class="nx">not</span> <span class="p">.</span><span class="nx">Draft</span><span class="err">)</span> <span class="err">(</span><span class="nx">not</span> <span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">private</span><span class="err">)</span> <span class="err">-</span><span class="p">}}</span>
    <span class="p">{{</span><span class="err">-</span> <span class="err">$</span><span class="p">.</span><span class="nx">Scratch</span><span class="p">.</span><span class="nx">Add</span> <span class="s2">&#34;index&#34;</span> <span class="err">(</span><span class="nx">dict</span> <span class="s2">&#34;objectID&#34;</span> <span class="p">.</span><span class="nx">File</span><span class="p">.</span><span class="nx">UniqueID</span> <span class="s2">&#34;url&#34;</span> <span class="p">.</span><span class="nx">Permalink</span> <span class="s2">&#34;content&#34;</span> <span class="err">(</span><span class="p">.</span><span class="nx">Summary</span> <span class="err">|</span> <span class="nx">plainify</span><span class="err">)</span> <span class="s2">&#34;tags&#34;</span> <span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">Tags</span> <span class="s2">&#34;lvl0&#34;</span> <span class="p">.</span><span class="nx">Title</span> <span class="s2">&#34;lvl1&#34;</span> <span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">Categories</span> <span class="s2">&#34;lvl2&#34;</span> <span class="s2">&#34;摘要&#34;</span><span class="err">)</span> <span class="err">-</span><span class="p">}}</span>
  <span class="p">{{</span><span class="err">-</span> <span class="nx">end</span> <span class="err">-</span><span class="p">}}</span>
<span class="p">{{</span><span class="err">-</span> <span class="nx">end</span> <span class="err">-</span><span class="p">}}</span>
<span class="p">{{</span><span class="err">-</span> <span class="err">$</span><span class="p">.</span><span class="nx">Scratch</span><span class="p">.</span><span class="nx">Get</span> <span class="s2">&#34;index&#34;</span> <span class="err">|</span> <span class="nx">jsonify</span> <span class="err">-</span><span class="p">}}</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="执行-hugo-命令生成索引文件">执行 <code>hugo</code> 命令，生成索引文件</h3>
<p>执行 <code>hugo</code> 命令之后，在 <code>public</code> 目录下就会生成 <code>algolia.json</code> 文件</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">hugo
</code></pre></td></tr></table>
</div>
</div><h2 id="自动上传索引文件">自动上传索引文件</h2>
<h3 id="安装-atomic-algolia-包">安装 atomic-algolia 包</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">npm init  
npm install atomic-algolia --save
</code></pre></td></tr></table>
</div>
</div><h3 id="添加脚本指令">添加脚本指令</h3>
<p>修改目录下的 package.json 文件，在 scripts 下添加 &ldquo;algolia&rdquo;: &ldquo;atomic-algolia&rdquo;</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash"><span class="s2">&#34;scripts&#34;</span>: <span class="o">{</span>
    <span class="s2">&#34;test&#34;</span>: <span class="s2">&#34;echo \&#34;Error: no test specified\&#34; &amp;&amp; exit 1&#34;</span>,
    <span class="s2">&#34;algolia&#34;</span>: <span class="s2">&#34;atomic-algolia&#34;</span>
<span class="o">}</span>,
</code></pre></td></tr></table>
</div>
</div><h3 id="设置环境变量">设置环境变量</h3>
<p>根目录下新建 .env 文件，内容如下：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash"><span class="nv">ALGOLIA_APP_ID</span><span class="o">=</span>你的Application ID
<span class="nv">ALGOLIA_INDEX_NAME</span><span class="o">=</span>你的索引名字
<span class="nv">ALGOLIA_INDEX_FILE</span><span class="o">=</span>public/algolia.json
<span class="nv">ALGOLIA_ADMIN_KEY</span><span class="o">=</span>你的Admin API Key
</code></pre></td></tr></table>
</div>
</div><h3 id="指令测试">指令测试</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">npm run algolia
</code></pre></td></tr></table>
</div>
</div><h2 id="添加前端ui">添加前端UI</h2>
<p>剩下的工作就是添加搜索框了，这一步是跟主题相关的，不过其他主题应该只需要小的调整就可以了。</p>
<h3 id="引入css文件">引入CSS文件</h3>
<p>在主题 <code>layouts/partials</code> 目录下的 <code>head.html</code> 中引入docsearch的CSS文件</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-html" data-lang="html">{{- if .Site.Params.algolia.appId -}}
<span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css&#34;</span> <span class="p">/&gt;</span>
{{- end -}}
</code></pre></td></tr></table>
</div>
</div><h3 id="引入js文件并初始化">引入JS文件并初始化</h3>
<p>在主题 <code>layouts/partials</code> 目录下的 <code>scripts.html</code> 中引入docsearch的JS文件并初始化</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-html" data-lang="html">{{- if .Site.Params.algolia.appId -}}
<span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nt">script</span><span class="p">&gt;</span>
    <span class="nx">docsearch</span><span class="p">({</span>
    <span class="nx">apiKey</span><span class="o">:</span> <span class="p">{{</span> <span class="p">.</span><span class="nx">Site</span><span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">algolia</span><span class="p">.</span><span class="nx">searchOnlyKey</span> <span class="p">}},</span>
    <span class="nx">indexName</span><span class="o">:</span> <span class="p">{{</span> <span class="p">.</span><span class="nx">Site</span><span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">algolia</span><span class="p">.</span><span class="nx">indexName</span> <span class="p">}},</span>
    <span class="nx">appId</span><span class="o">:</span> <span class="p">{{</span> <span class="p">.</span><span class="nx">Site</span><span class="p">.</span><span class="nx">Params</span><span class="p">.</span><span class="nx">algolia</span><span class="p">.</span><span class="nx">appId</span> <span class="p">}},</span>
    <span class="nx">inputSelector</span><span class="o">:</span> <span class="s1">&#39;.docsearch-input&#39;</span><span class="p">,</span>
    <span class="nx">debug</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
    <span class="p">});</span>
<span class="p">&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
{{- end -}}
</code></pre></td></tr></table>
</div>
</div><h3 id="添加搜索框入口">添加搜索框入口</h3>
<p>在主题 <code>layouts/partials</code> 目录下的 <code>header.html</code> 中导航栏合适的位置添加搜索框</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-html" data-lang="html">{{- if .Site.Params.algolia.appId -}}
  <span class="p">&lt;</span><span class="nt">li</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;display:inline-block;margin-right:10px;&#34;</span><span class="p">&gt;</span>
    <span class="p">&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&#34;search&#34;</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;docsearch-input&#34;</span> <span class="na">placeholder</span><span class="o">=</span><span class="s">&#34;Search&#34;</span> <span class="p">/&gt;</span>
  <span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
{{- end -}}
</code></pre></td></tr></table>
</div>
</div><blockquote>
<p>参考资源：
<a href="https://www.cnblogs.com/edward852/p/12353700.html">https://www.cnblogs.com/edward852/p/12353700.html</a></p>
</blockquote>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">lglspace</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2020-10-21
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/hugo/">Hugo</a>
          <a href="/tags/site/">site</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/nginx/nginx-linux-install/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">Nginx在CentOS7上安装</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/mac/mac-homebrew-updating/">
            <span class="next-text nav-default">brew一直卡在Updating Homebrew</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:lglspace@outlook.com" class="iconfont icon-email" title="email"></a>
  <a href="https://lglspace.cn/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  

  

  <span class="copyright-year">
    &copy; 
    2020 - 
    2021<span class="heart"><i class="iconfont icon-heart"></i></span><span>lglspace</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.a74e82b84b872f6b028df4e965781ddbba1606f0253b4fad5e4cf3913cf576eb.js"></script>






<script src="/js/site-custom.js"></script>


</body>
</html>
